package com.atguigu.service;

import com.atguigu.api.PaymentApi;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author cyd
 * @version 1.0.0
 * @date 2021/11/15 9:18
 */
@Service
public class ConsumerService {

    // 注入微服务调用接口
    @Resource
    PaymentApi paymentApi;

    public String getPaymentInfo_ok(Integer id) {
        return paymentApi.paymentInfo_ok(id) + "--Consumer80调用";
    }

    public String getPaymentInfo_timeOut(Integer id) {
        return paymentApi.paymentInfo_timeOut(id) + "--Consumer80调用";
    }
}
